All credit for bmp goes to Ken Mitchell. I simply customized it more to my tastes.